<!DOCTYPE html>
<html lang="en">

	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=0.5, maximum-scale=2.0, user-scalable=yes">
		<title>大唐微科集团</title>
		<link rel="shortcut icon" href="assets/img/icon.png">
		<link rel="stylesheet" type="text/css" href="assets/css/bootstrap.min.css">
		<link rel="stylesheet" type="text/css" href="assets/css/main.css">
		<link rel="stylesheet" type="text/css" href="assets/css/green.css" media="screen" />
		<link rel="stylesheet" type="text/css" href="assets/css/animate.css">
		<link rel="stylesheet" href="assets/css/slicknav.css" />
		<link rel="stylesheet" href="assets/css/Element-ui.css" />
		<style type="text/css">
			#app{
				margin:auto;
				width:90%;
				margin-left:5%;
				float: left;
			}
			.el-carousel__container img{
				display: block;
				width:100%;
			}
			#carousel-area i{
				margin-right: 0;
			}
			@media only screen and (min-width: 320px) and (max-width: 480px) {
				.el-pagination.is-background .el-pager li {
				    margin: 0 2px;
				}
				.el-carousel__indicator {
				    padding: 4px 7px;
				}
				.el-carousel__button{
					width:7px;
					height:7px;
				}
			}
		</style>
	</head>

	<body>
		<header id="header-wrap"></header>
		<div id="app" v-cloak>
			<!--<div class="banner_img">
				<img src="assets/img/banner_bg.png"/>
			</div>-->
			<!--center-->
			<section id="about" class="section">
				<div class="team-all about_team">
					<div class="about_border_bottom"> 
						<div class="introduction_left" ref='bannerHeight'>
							<div class="" id="company_nav_tit">
								<div class="section-title wow fadeInUpQuick">
									<a href="index.html" class="a_hover">
										<img src="assets/img/home.png" />&nbsp;&nbsp;首页&nbsp;
									</a><i class="el-icon-arrow-right"></i>&nbsp;<a class="a_hover" href="news.html">新闻媒体</a>
									<i class="el-icon-arrow-right"></i>&nbsp;<a class="a_hover">{{newsDetailNum}}</a>&nbsp;
									<i class="el-icon-arrow-right"></i>
									<span style="color:#003793;">详情</span>
								</div>
							</div>
							<!--新闻详情-->
							<div class="news_detail_div">
								<p class="news_detail_op">{{newsdetailList.newsTitle}}</p>
								<div class="news_detail_time">
									<span class="news_time">发布时间：{{newsdetailList.createTime|time}}</span>
									<span class="news_white_tit">内容来源：{{newsdetailList.newsfile}}</span>
								</div>
								<p class="news_detail_centent" v-html="newsdetailList.newsContent"></p>
							</div>
						</div>
						<div class="introduction_right">
							<div class="introdu_topImg">
								<img src="assets/img/news.png"/>
								<div class="topImg_right">共创·共建·共赢·共享</div>
							</div>
							<ul class="right_ulList" :style="{height:UlHeight - 97 + 'px'}">
								<li class="li_List" v-for="(item,index) in newsRightInfo" :class="{List_active:index == current}" @click="btnRightList(item.id,item.classifiedsName,index)">{{item.classifiedsName}}</li>
							</ul>
						</div>
					</div>
					<!--底部边框颜色-->
					<div class="bottom_color">
						<div class="left_color"></div>
						<div class="right_color"></div>
					</div>
				</div>
			</section>
		</div>
		<script type="text/javascript" src="assets/js/jquery-min.js"></script>
		<script type="text/javascript" src="assets/js/conent.js"></script>
		<script type="text/javascript" src="assets/js/vue.js" ></script>
		<script type="text/javascript" src="assets/js/vue-resource.js" ></script>
		<!--<script type="text/javascript" src="assets/js/Element-ui.js" ></script>-->
		<script type="text/javascript">
			function getQueryString(name) {
				var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)")
				var r = window.location.search.substr(1).match(reg);
				if(r != null) {
					return decodeURI(r[2])
				}
				return null;
			}
			//详情页ID
			var detailId = getQueryString("newsdetailId");
			//详情页下标
			var detailNumber = getQueryString('detaliNum');
			//详情页名称
			var detailNum = getQueryString('detailNumClass')
			var vm = new Vue({
				el:'#app',
				data(){
					return{
						UlHeight : '',
						newsdetailList : '',
						//时间戳
						value: '',
						//右侧列表
						newsRightInfo : '',
						//动态添加class
						current : 0,
						//详情页名称
						newsDetailNum : '',
						//详情页ID
						newsDetailId : ''
					}
				},
				created(){
					this.newsdetailInfo();
					this.rightInfo()
				},
				methods:{
					newsdetailInfo(){
						var _this = this;
						this.$http.get(URL + 'getSingleNews/' + detailId).then(function(obj){
							if(obj.body.code == 'success'){
								_this.newsdetailList = obj.body.data;
								//获取高度
								_this.$nextTick(function(){
									_this.UlHeight = this.$refs.bannerHeight.offsetHeight;
								})
							}
						})
					},
					//右侧列表
					rightInfo(){
						var _this = this;
						this.$http.get(URL + 'sysnewsclassifies').then(function(obj){
							if(obj.body.code == 'success'){
								_this.newsRightInfo = obj.body.data;
								_this.current = detailNumber;
								_this.newsDetailNum = detailNum;
							}
						})
					},
					btnRightList(id,className,numb){
						window.location.href = 'news_list.html?newsId=' + id + '&newsName=' + className + '&number=' + numb
					}
				},
				filters: {
					time: function time(value) {
						let date = new Date(value);
				        let y = date.getFullYear();
				        let MM = date.getMonth() + 1;
				        MM = MM < 10 ? ('0' + MM) : MM;
				        let d = date.getDate();
				        d = d < 10 ? ('0' + d) : d;
				        return y + '-' + MM + '-' + d;
					}
				},
				updated(){
					setTimeout(function() {
						$("#main-menu li a").removeClass("active");
						$("#main-menu li:nth-of-type(" + 5 + ") a").addClass('active');
					},300)
				}
			})
			setTimeout(function() {
				var wow = new WOW({
					mobile: false 
				});
				wow.init();
			},300)
			
		</script>
		<script type="text/javascript" src="assets/js/wow.js" ></script>
		<!--底部-->
		<footer id="footer"></footer>
		<a href="#" class="back-to-top">
			<i class="fa fa-angle-up">
				<span class="i_span"></span>
			</i>
		</a>
		<script type="text/javascript" src="assets/js/Top.js"></script>
	</body>

</html>